import java.io.File;
import java.io.IOException;
import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: qian
 * Date: 2023-02-16
 * Time: 16:16
 */

class exte extends  Exception{

}
enum BlogEnum {
    USER_LOGIN_CODE(0,"算术异常"),
    USER_LOGIN_ACCOUNT(1,"用户名或者密码错误"),
    USER_VERIFY_PASS(2,"输入的旧密码错误"),
    USER_UPDATE(3,"更新用户信息失败"),
    ARTICLE_ISOPEN(4,"修改文章是否公开失败"),;

    private String message;
    private int typeCode;

    BlogEnum(int typeCode) {
        this.typeCode = typeCode;
    }
    BlogEnum(int typeCode, String message) {
        this.message = message;
        this.typeCode = typeCode;
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(int typeCode) {
        this.typeCode = typeCode;
    }
}
class Mythread extends Thread{
    @Override
    public void run(){
        Random random=new Random();
        while(true){
            System.out.println(Thread.currentThread().getName());
            try {
                Thread.sleep(random.nextInt(10));
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
class BlogException extends RuntimeException {
    private BlogEnum blogEnum;

    public BlogException(BlogEnum blogEnum) {
        //从异常堆栈中获取异常信息
        super(blogEnum.getMessage());
        this.blogEnum = blogEnum;
    }
}

public class test1{
    public static void main(String[] args) throws IOException {

    }
    public static void main8(String[] args) {
        Mythread t1=new Mythread();
        Mythread t2=new Mythread();
        Mythread t3=new Mythread();
        t1.start();
        t2.start();;
        t3.start();
        Random random=new Random();
        while(true){
            System.out.println(Thread.currentThread().getName());
            try {
                Thread.sleep(random.nextInt(10));
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }


    public static void main6(String[] args) {
        int t1=1;
        Integer t2=1;
        System.out.println(t1==t2);
    }
    public static void doSomething(Integer i){
        i=new Integer(2);
    }
    public static void main5(String[] args) {
        int a=11;
        a*=0.9;
        System.out.println(a);
    }
    public static void main4(String[] args) {
        int[] arr={1,2,3,4};
        int[] arr1=Arrays.copyOf(arr,4);
        int[] arr2=arr;
        arr1[2]=99;
        arr2[3]=100;
        System.out.println(arr[2]);
        System.out.println(arr[3]);
    }
    public static void main3(String[] args) {
        int count=0;
        int n=-1;
        for(int i = 0; i < 32; i++)
        {
            if( ((n >> i) & 1) == 1 )  // 因为 i 是从 0 开始的，第一次 n >> i 相当于没有移
            {
                count++;  // 统计 1 的个数
            }
        }
        System.out.println(count);
    }
    public static void main2(String[] args) {
        int i=0;
        int j=1;
        int n=0;
        if(i+j==n+1){
            System.out.println(1);
        }
        System.out.println(2);
    }
    public static int nmul(int n){
        if(n==1) {
            return 1;
        }
        return n*=nmul(n-1);
    }

    public static void main1(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        System.out.println(a);

        String y=sc.nextLine();
        System.out.println(y);
    }
    public static int fun(int a,int b){
        return a+b;
    }
}
